5d308f5d402522b2a387e30292187d71a3724ba8,plugins/sonar-findbugs-plugin/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileExporterTest.java,FindbugsProfileExporterTest,shouldBuildModuleWithProperties,#,94
Before Change
@Test
public void shouldBuildModuleWithProperties() {
ActiveRule activeRule = anActiveRule(DLS_DEAD_LOCAL_STORE);
FindBugsFilter filter = FindbugsProfileExporter.buildFindbugsFilter(Arrays.asList(activeRule));
assertThat(filter.getMatchs()).hasSize(1);
assertThat(filter.getMatchs().get(0).getBug().getPattern()).isEqualTo("DLS_DEAD_LOCAL_STORE");
After Change
public void shouldBuildModuleWithProperties() {
ActiveRule activeRule = anActiveRule(DLS_DEAD_LOCAL_STORE);
FindBugsFilter filter = new FindBugsFilter();
FindbugsProfileExporter.addRules(filter, Arrays.asList(activeRule));
assertThat(filter.getMatchs()).hasSize(1);
assertThat(filter.getMatchs().get(0).getBug().getPattern()).isEqualTo("DLS_DEAD_LOCAL_STORE");